MSG3=`gettextfunc "Failed to start the X server (your graphical interface). It is likely that it is not set up correctly. You will need to log in on a console and reconfigure the X server. Then restart GDM."`
MSG4=`gettextfunc "Would you like to try to configure the X server? Note that you will need the root password for this."`
MSG5=`gettextfunc "Please type in the root (privileged user) password."`
MSG6=`gettextfunc "Trying to restart the X server."`
MSG7=`gettextfunc "The X server is now disabled. Restart GDM when it is configured correctly."`
MSG8=`gettextfunc "Failed to start the X server (your graphical interface). It is likely that it is not set up correctly. Would you like to view the X server output to diagnose the problem?"`
MSG9=`gettextfunc "Would you like to view the detailed X server output as well?"`
# there are some env vars defined:
# XLOG = the log file for the X server
# BINDIR = location of gdm binaries
# SBINDIR = location of gdm system binaries
# LIBEXECDIR = location of gdm libexec binaries (gdmaskpass, gdmopen)
# return values are
# 0 = try again, runs this server again
# 1 = abort this display, removes this server from the list
# 32 = something went very wrong, things will just get logged.
# this means this script didnt work so do alternative things
# to tell the user if possible
#
# Now we check for dialog and gdmaskpass
#
DIALOG_OPTS=
DIALOG=`gdmwhich dialog`
if test "x$DIALOG" = "x" ; then
DIALOG=`gdmwhich whiptail`
DIALOG_OPTS="--scrolltext"
fi
if test -x "$LIBEXECDIR/gdmaskpass" ; then
ASKPASS="$LIBEXECDIR/gdmaskpass"
else
ASKPASS=
fi
# we require 'gdmopen', to open a console, because we really dont
# have one. Perhaps someone should try to figure out some shell
# black magic to get this to work on other then linux systems
if test ! -x "$LIBEXECDIR/gdmopen" ; then
exit 32
fi
# when we run ourselves from the open we will pass a -noopen argument
if test "x$1" = "x-noopen" ; then
shift
else
#
# We do a lot of work wastefully over again, but oh well,